package cn.tedu.charging.cost.entity.vo;


import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import java.math.BigDecimal;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class ChargingData {

    Integer count;
    String orderNo;
    Float chargingDushu;
    BigDecimal totalPrice;


    public void countAdd1(){
        this.count+=1;
    }

    public Float  getDiffDushu(Float chargingDushu){
        return chargingDushu-this.chargingDushu;
    }

    public void addPrice(BigDecimal price){
        this.totalPrice.add(price);
    }

}


